<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="public/theme/backend/style/vds.css" />
<link rel="stylesheet" type="text/css" href="public/theme/backend/style/main.css" />
<script type="text/javascript" src="public/theme/backend/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="public/theme/backend/js/vds.js"></script>
<script type="text/javascript" src="public/theme/backend/js/list.js"></script>
</head>
<body>
<div class="content">
  <div class="loc"><h2><i class="icon"></i>分类属性</h2></div>
  <div class="box">
    <div class="bw-row ta-c pad10 cut">
      <h3 class="c666"><{$cate.cate_name}><font class="ml5 c999">[ID:<{$cate.cate_id}>]</font></h3>
    </div>
    <div class="doacts mt5">
      <a class="ae add btn" href="<{url m=$MOD c='goods_cate_attr' a='add' cate_id=$cate.cate_id}>"><i></i><font>新增属性</font></a>
      <a class="ae btn" onclick="doslvent('<{url m=$MOD c='goods_cate_attr' a='edit'}>', 'id')"><i class="edit"></i><font>编辑</font></a>
      <a class="ae btn" onclick="doslvent('<{url m=$MOD c='goods_cate_attr' a='delete'}>', 'id')"><i class="remove"></i><font>删除</font></a>
    </div>
    <{if !empty($attrs)}>
    <div class="module mt5">
      <table class="datalist">
        <tr>
          <th width="50" colspan="2">编号</th>
          <th class="ta-l">属性名称</th>
          <th>可选值</th>
          <th width="120">作为筛选</th>
          <th width="120">计量单位</th>
          <th width="120">排序</th>
        </tr>
        <{foreach $attrs as $v}>
        <tr>
          <td width="20"><input name="id" type="checkbox" value="<{$v.attr_id}>" /></td>
          <td width="30"><{$v.attr_id}></td>
          <td width="200" class="ta-l"><a class="blue" href="<{url m=$MOD c='goods_cate_attr' a='edit' id=$v.attr_id}>"><{$v.name}></a></td>
          <td><{if !empty($v.opts)}><{foreach $v.opts as $vv}>
            <button type="button" class="mr10 mbtn btn"><{$vv}></button>
            <{/foreach}><{else}><font class="c999">未设置</font><{/if}></td>
          <td><{if $v.filtrate == 1}><i class="icon yes"></i><{else}><i class="icon no"></i><{/if}></td>
          <td><{if !empty($v.uom)}><{$v.uom}><{else}><font class="c999">未设置</font><{/if}></td>
          <td><{$v.seq}></td>
        </tr>
        <{/foreach}>
      </table>
    </div>
    <{else}>
    <div class="nors mt5">未找到相关数据记录...</div>
    <{/if}>
  </div>
</div>
</body>
</html>
